#include <stdio.h>


int main()
{
    int x[3] = {1, 2, 3};
    int *p = x;
    // 输出数组元素的地址
    printf("%d\n", *x);
    printf("%p\n", x + 2);
    printf("%p\n", &x[2]);
    printf("%d\n", *(p + 2));
    printf("p%p\n", p);
    printf("%d\n", p[2]);
    printf("%d\n", *x + 2);
    printf("%d\n", x[2]);
    return 0;
}